gdk: Add version macros for 3.20
authorBenjamin Otte <otte@redhat.com>
Sun, 13 Sep 2015 13:36:49 +0000 (15:36 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 4 Oct 2015 02:24:17 +0000 (22:24 -0400)
gdk/gdkversionmacros.h.in

index e9d788de779443472ea844eead53f4106713b9b3..0dd77749f53850ad86c49903d20da7659baa2df7 100644 (file)
  */
 #define GDK_VERSION_3_18        (G_ENCODE_VERSION (3, 18))
 
+/**
+ * GDK_VERSION_3_20:
+ *
+ * A macro that evaluates to the 3.20 version of GDK, in a format
+ * that can be used by the C pre-processor.
+ *
+ * Since: 3.18
+ */
+#define GDK_VERSION_3_20        (G_ENCODE_VERSION (3, 20))
+
 /* evaluates to the current stable version; for development cycles,
  * this means the next stable target
  */
 # define GDK_AVAILABLE_IN_3_18                _GDK_EXTERN
 #endif
 
+#if GDK_VERSION_MIN_REQUIRED >= GDK_VERSION_3_20
+# define GDK_DEPRECATED_IN_3_20               GDK_DEPRECATED
+# define GDK_DEPRECATED_IN_3_20_FOR(f)        GDK_DEPRECATED_FOR(f)
+#else
+# define GDK_DEPRECATED_IN_3_20               _GDK_EXTERN
+# define GDK_DEPRECATED_IN_3_20_FOR(f)        _GDK_EXTERN
+#endif
+
+#if GDK_VERSION_MAX_ALLOWED < GDK_VERSION_3_20
+# define GDK_AVAILABLE_IN_3_20                GDK_UNAVAILABLE(3, 20)
+#else
+# define GDK_AVAILABLE_IN_3_20                _GDK_EXTERN
+#endif
+
 #endif  /* __GDK_VERSION_MACROS_H__ */